package org.yagnus.stats.sampler.disrete.withoutreplacement;


/**
 *
 * @author hc.busy
 * 
 * This class uses a modified redblack tree from TreeMap class to store an updatable double range of probability
 * in order to implement a sampler that has worst case as well as average run time nlogn.
 * Useful for unknown distributions.
 * 
 * TODO: write this class.
 */
public class TreeArraySampler<BASETYPE> extends WithoutReplacementSampler<BASETYPE> {

    @Override
    public BASETYPE take() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    protected void _init(BASETYPE[] t, double[] weights) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void addSample(BASETYPE t, double w) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void removeSample(BASETYPE t) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public TreeArraySampler(BASETYPE[] t, double[] weights) {
        super(t, weights);
    }

    public TreeArraySampler(BASETYPE[] t, long[] weights) {
        super(t, weights);
    }

    public TreeArraySampler(BASETYPE[] t, int[] weights) {
        super(t, weights);
    }

    public TreeArraySampler(BASETYPE[] t) {
        super(t);
    }


}
